<template>
  <div>登陆页</div>
  <el-button @click="goBack">回首页</el-button>
</template>
<script>
import {  useRouter } from 'vue-router'

export default {
  setup(){
    const router = useRouter()
      const goBack = ()=>{
        router.push('/')
      }
      return {
        goBack
      }
    
  }
}
</script>